package com.healthcloud.service.PatientRecord.impl;

import com.healthcloud.entity.PatientRecord.HcMedicalEntityQh;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import com.healthcloud.dao.PatientRecord.HcMedicalDao;
import com.healthcloud.entity.PatientRecord.HcMedicalEntity;
import com.healthcloud.service.PatientRecord.HcMedicalService;
import com.healthcloud.utils.PageParam;
import org.springframework.transaction.annotation.Transactional;



@Service("hcMedicalService")
@Transactional
public class HcMedicalServiceImpl implements HcMedicalService {
	@Autowired
	private HcMedicalDao hcMedicalDao;

	@Override
	public HcMedicalEntity queryObject(Integer id){
		return hcMedicalDao.queryObject(id);
	}

	@Override
	public List<HcMedicalEntity> queryList(HcMedicalEntity bean, PageParam pageParam){
		return hcMedicalDao.queryList(bean, pageParam);
	}

	@Override
	public int queryTotal(HcMedicalEntity bean){
		return hcMedicalDao.queryTotal(bean);
	}

	@Override
	public void save(HcMedicalEntity hcMedical){
		hcMedicalDao.save(hcMedical);
	}

	public void update(HcMedicalEntity hcMedical) {
		hcMedicalDao.update(hcMedical);
	}

	@Override
	public void deleteBatch(Long[] ids) {
		hcMedicalDao.deleteBatch(ids);
	}

	@Override
	public List<HcMedicalEntity> queryListQh(HcMedicalEntityQh entity, PageParam pageParam) {
		return hcMedicalDao.queryListQh(entity,pageParam);
	}

	@Override
	public int queryTotalQh(HcMedicalEntityQh entity) {
		return hcMedicalDao.queryTotalQh(entity);
	}

	@Override
	public void saveQh(HcMedicalEntity entity) {
		hcMedicalDao.saveQh(entity);
	}

	@Override
	public void deleteBatchQh(Long[] ids) {
		hcMedicalDao.deleteBatchQh(ids);
	}

	@Override
	public void updateQh(HcMedicalEntity entity) {
		hcMedicalDao.updateQh(entity);
	}
}
